powered by
Context functions
zmq.ctx.new()zmq.ctx.destroy(ctx)
zmq.ctx.destroy(ctx)
a ZMQ context
zmq.ctx.new() returns an R external pointer (ctx) generated by ZMQ C API pointing to a context if successful, otherwise returns an R NULL.
zmq.ctx.new()
ctx
NULL
zmq.ctx.destroy() returns 0 if successful, otherwise returns -1 and sets errno to either EFAULT or EINTR.
zmq.ctx.destroy()
errno
EFAULT
EINTR
zmq.ctx.new() initializes a ZMQ context for starting communication.
zmq.ctx.destroy() terminates the context for stopping communication.
ZeroMQ/4.1.0 API Reference: http://api.zeromq.org/4-1:_start
Programming with Big Data in R Website: http://r-pbd.org/
zmq.socket(), zmq.close(), zmq.bind(), zmq.connect().
zmq.socket()
zmq.close()
zmq.bind()
zmq.connect()
# NOT RUN { library(pbdZMQ, quietly = TRUE) context <- zmq.ctx.new() zmq.ctx.destroy(context) # } # NOT RUN { # }
Run the code above in your browser using DataLab